
<div class="content-box">
    <div class="box-header clear">
        <ul class="tabs clear">
            <li><a href='<?php echo base_url() ?>user/add' class="selected"><?php echo lang('btn_add') ?></a></li>
        </ul>
        <h2><?php echo lang('lbl_user') ?></h2>
    </div>
    <div class="box-body clear">
        <div id="data-table">
                <table class="datatable">
                    <thead>
                        <tr>
                            <th><?php echo lang('lbl_username') ?></th>
                            <th><?php echo lang('lbl_email') ?></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>

                        <?php foreach ($users as $key => $item): ?>
                            <tr id="row<?php echo $key; ?>">
                                <td><?php echo $item->username; ?></td>
                                <td><?php echo $item->email; ?></td>
                                <td>
                                    <a href="<?php echo base_url() ?>user/edit/<?php echo $item->id; ?>">
                                    	<img title="<?php echo lang('lbl_edit') ?>" alt="" class="icon16 fl-space2" src="<?php echo base_url().SKINSPATH; ?>admin/images/ico_edit_16.png">
                                    </a>
                                    <a href="javascript:remove('row<?php echo $key; ?>','<?php echo base_url() ?>user/delete','<?php echo $item->id; ?>')">
                                    	<img title="<?php echo lang('lbl_delete') ?>" alt="" class="icon16 fl-space2" src="<?php echo base_url().SKINSPATH; ?>admin/images/ico_delete_16.png">
                                    </a>
                                </td>
                            </tr>

                        <?php endforeach; ?>
                    </tbody>
                </table>
        </div>
    </div>
</div>
<script type="text/javascript">
    InitTables (2);
</script>